home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
APPSETUP.ZIP
/
APPREXIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-04
|
859b
|
38 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "appsetup.h"
/*-------------------------------------------------------------------------*/
BOOL WINAPI ReStartExitDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
HWND hWndAppBar;
switch(message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch(wParam)
{
case IDRESTARTEXIT_YES:
EndDialog(hDlg, 0);
if((hWndAppBar = GetAppBarWindow()) != NULL)
SendMessage(hWndAppBar, WM_COMMAND, WM_APPBAR_RESTART, 0L);
SendMessage(hWnd, WM_DESTROY, 0, 0);
return TRUE;
case IDRESTARTEXIT_NO:
EndDialog(hDlg, 0);
SendMessage(hWnd, WM_DESTROY, 0, 0);
return TRUE;
}
break;
}
return FALSE;
}